package com.ruoyi.web.controller.system.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: dzx
 * @Date:Create：in 2020/7/15 0015 13:53
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Configuration
public class FileConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/fileUpload/**").addResourceLocations("file:d:/usr/local/files/");
    }
}
